package gui.layouts;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.WindowConstants;

public class LayoutBorderLayout extends JFrame
{
   
   private static final long serialVersionUID = 7338840750468219597L;
   
   public LayoutBorderLayout()
   {
      super("Border Layout");
      setSize(300, 300);
      setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
      setLayout(new BorderLayout());
      getContentPane().add(BorderLayout.NORTH, new JButton("1"));
      getContentPane().add(BorderLayout.SOUTH, new JButton("2"));
      getContentPane().add(BorderLayout.WEST, new JButton("3"));
      getContentPane().add(BorderLayout.EAST, new JButton("4"));
      getContentPane().add(BorderLayout.CENTER, new JButton("5"));
      
      setVisible(true);
   }
   
   public static void main(String[] args)
   {
      new LayoutBorderLayout();
   }
}
